import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/home",
        name: "home",
        component: () => import("../components/home/index.vue"),
    },
    {
        path: "/d3",
        name: "d3",
        component: () => import("../components/design3D/index.vue"),
    },
    {
        path: "/d2",
        name: "d2",
        component: () => import("../components/design2D/index.vue"),
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes
  })

export default router;
